package com.xiangban.service.fegin;

import com.xiangban.model.dto.SmsParameterDto;
import com.xiangban.model.res.ApiResult;
import com.xiangban.service.fallback.SmsServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient(value = "message",fallbackFactory =SmsServiceFallback.class)
public interface SmsServiceFeign {
    @RequestMapping("/send/sendSms")
    ApiResult<Object> sendSms(SmsParameterDto smsParameterDto);

}
